Benjamin Otte [Wed, 3 Feb 2016 22:07:05 +0000 (23:07 +0100)]
broadway: Define variables where they are used
Avoids gcc warnings about unused variables.
Benjamin Otte [Wed, 3 Feb 2016 22:06:53 +0000 (23:06 +0100)]
composetable: Fix gcc warnings
Benjamin Otte [Wed, 3 Feb 2016 21:50:03 +0000 (22:50 +0100)]
immodule: Use correct sign for function prototype
Benjamin Otte [Wed, 3 Feb 2016 19:44:06 +0000 (20:44 +0100)]
entry: Turn progress node into a gadget
Benjamin Otte [Tue, 2 Feb 2016 14:44:28 +0000 (15:44 +0100)]
entry: Simplify drawing code
Lapo Calamandrei [Wed, 3 Feb 2016 17:32:51 +0000 (18:32 +0100)]
Adwaita: fix headerbar spinbutton size
fixes https://bugzilla.gnome.org/show_bug.cgi?id=761484
William Hua [Wed, 3 Feb 2016 15:20:30 +0000 (10:20 -0500)]
Matthias Clasen [Wed, 3 Feb 2016 15:06:05 +0000 (16:06 +0100)]
print dialog: Fix layout preview drawing
Use the CSS name paper for this as well, and make sure Adwaita
sets a color that makes the text visible in the dark theme as well.
Lapo Calamandrei [Wed, 3 Feb 2016 14:23:17 +0000 (15:23 +0100)]
Adwaita: notebook with hidden header style fix
the stack styling is applied only when there is a header, hence
when the stack node is not the notebook only child, should cure
https://bugzilla.gnome.org/show_bug.cgi?id=760996
Lapo Calamandrei [Wed, 3 Feb 2016 14:03:39 +0000 (15:03 +0100)]
Adwaita: fix vertical spinbutton style
correct sizing and workaround disabled entry text colors.
Carlos Garcia Campos [Tue, 2 Feb 2016 17:50:58 +0000 (18:50 +0100)]
notebook: Do not reorder tabs after a grab notify if there isn't an ongoing reorder operation
This broke in
f535251507a6a0af68aed6348ae80cbdac9b1f4a that removed
during_reorder in favor of using the current operation, but removed the
check from gtk_notebook_stop_reorder().
Alexandre Franke [Tue, 2 Feb 2016 16:32:30 +0000 (16:32 +0000)]
Updated French translation
(cherry picked from commit
85fb4c1c0a17906a65e0b732770b88353b6214c4)
Alberts Muktupāvels [Mon, 1 Feb 2016 20:38:28 +0000 (22:38 +0200)]
gtksettings: reset property to correct default value
https://bugzilla.gnome.org/show_bug.cgi?id=76138
Emmanuele Bassi [Tue, 2 Feb 2016 15:08:10 +0000 (15:08 +0000)]
Revert "Add missing (out) annotation to gdk_rgba_parse"
This reverts commit
695860958a9a2e7c825bcec4d0d42b427f0fb47e.
The change introduced an introspection ABI break.
See also: https://bugzilla.gnome.org/show_bug.cgi?id=682125
If we want to move the parse() method to be a constructor or a class
method, we'll need to do more testing or add new API.
https://bugzilla.gnome.org/show_bug.cgi?id=754990
Benjamin Otte [Mon, 1 Feb 2016 13:47:43 +0000 (14:47 +0100)]
entry: Draw progress in the right place
Balázs Meskó [Tue, 2 Feb 2016 13:22:12 +0000 (13:22 +0000)]
Updated Hungarian translation
Mario Blättermann [Mon, 1 Feb 2016 18:51:46 +0000 (19:51 +0100)]
Updated German translation
Matthias Clasen [Sun, 31 Jan 2016 21:53:53 +0000 (16:53 -0500)]
reftests: Make separator-size test pass in HighContrastInverse
After neutralizing the stack background, the notebook itself
was peeking through.
Daniel Mustieles [Sun, 31 Jan 2016 21:30:39 +0000 (22:30 +0100)]
Updated Spanish translation
Daniel Mustieles [Sun, 31 Jan 2016 21:30:29 +0000 (22:30 +0100)]
Updated Spanish translation
Matthias Clasen [Sun, 31 Jan 2016 19:10:13 +0000 (14:10 -0500)]
Trivial formatting fix
Matthias Clasen [Sun, 31 Jan 2016 19:08:35 +0000 (14:08 -0500)]
reftests: Make label-text-shadow-changes-modify-clip test more reliable
This test was failing in continuous, where the tests are running
in a VM with disabled animations. Make the test adapt to that
situation by changing the rui on the fly if we find that animations
are disabled.
Matthias Clasen [Sun, 31 Jan 2016 19:06:34 +0000 (14:06 -0500)]
reftests: Add a message to the test output
Emit a message that ends up in the test output if we are modifying
the test on the fly.
Matthias Clasen [Sun, 31 Jan 2016 19:00:08 +0000 (14:00 -0500)]
reftests: Rename a source file
Easier to keep track of things if the sources are names after
the test they are used in.
Timm Bäder [Sun, 31 Jan 2016 15:17:03 +0000 (16:17 +0100)]
entry: Fix icon areas
Do the same thing we already do in gtk_entry_get_text_area.
Timm Bäder [Sat, 30 Jan 2016 23:01:31 +0000 (00:01 +0100)]
widget: Annotate out params of _translate_coordinates as optional
Matthias Clasen [Sun, 31 Jan 2016 18:51:54 +0000 (13:51 -0500)]
reftests: Make animation-direction test more reliable
This test was failing in continuous, where the tests are running
in a VM with disabled animations. Make the test adapt to that
situation by changing the reference ui on the fly if we find
that animations are disabled.
Matthias Clasen [Sun, 31 Jan 2016 17:57:50 +0000 (12:57 -0500)]
gtk-builder-tool: Expand the preview command
Make the preview command parse options properly, turn the ID into
an --id=ID option, and add a --css=FILE option that allows to
specify a css file to use for previewing.
This is useful for e.g. previewing the reftest .ui files with
their corresponding .css.
Matthias Clasen [Sun, 31 Jan 2016 17:05:35 +0000 (12:05 -0500)]
gtk-launch: Add --version
Support --version. Also improve the --help output cosmetically.
Matthias Clasen [Sun, 31 Jan 2016 16:01:46 +0000 (11:01 -0500)]
gtk-builder-tool: Accept --help
Saying 'Failed to open file '--help' is not polite or smart.
Catch this case and show usage information.
Matthias Clasen [Sun, 31 Jan 2016 04:07:56 +0000 (23:07 -0500)]
file chooser: Avoid a crash
Since
39c2d12330b6d4405ca8a5599c12017c58626fcf,
priv->operation_mode == OPERATION_MODE_BROWSE no longer
guarantees that priv->browse_files_model is the current
model of the list - we are only switching the models after
loading the new directory. Avoid triggering the assertion
in show_and_select_files by checking if we have right model
before calling it.
https://bugzilla.gnome.org/show_bug.cgi?id=761209
Matthias Clasen [Sun, 31 Jan 2016 03:52:13 +0000 (22:52 -0500)]
Don't include the builtin sequence table in multiple places
The table is defined as static const guint16 [], so it really
should only be included in one source file.
Matthias Clasen [Sun, 31 Jan 2016 03:50:54 +0000 (22:50 -0500)]
combobox: Avoid a misleading indentation
gcc 6 warns about this sort of thing. There were also some
stray ; here.
Matthias Clasen [Sun, 31 Jan 2016 02:50:00 +0000 (21:50 -0500)]
Fix the border-image-excess-size reftest
This was failing because the grid is now respecting border
width too. Making the selector more specific so it only
applies to the toolbars fixes this.
Matthias Clasen [Sun, 31 Jan 2016 02:43:49 +0000 (21:43 -0500)]
Fix another reftest
Make sure the notebook in the separator-size reftest does not
peek through, by giving it a transparent background.
Matthias Clasen [Sun, 31 Jan 2016 02:08:19 +0000 (21:08 -0500)]
Fix some reftests under wayland
Tests need to use popup windows, in order to avoid differences
due to CSD.
Matthias Clasen [Sun, 31 Jan 2016 01:56:17 +0000 (20:56 -0500)]
wayland: Reduce warning level for parentless temporaries
Temp windows without parent are used frequently in our testsuite;
using g_warning on them causes the tests to fail, which is not
useful. Reduce the warning to a g_message.
Matthias Clasen [Sat, 30 Jan 2016 23:31:30 +0000 (18:31 -0500)]
treeview: Draw background when empty
We have a function we call for drawing the empty case, but
it only renders a focus rectangle. Make it draw the background
as well.
https://bugzilla.gnome.org/show_bug.cgi?id=761309
Timm Bäder [Sat, 30 Jan 2016 21:31:27 +0000 (22:31 +0100)]
colorchooserwidgeet: Reset the selected swatch when removing
Otherwise, priv->current points to garbage and subsequently leads to a
crash, e.g. when adding another custom color.
Matthias Clasen [Sat, 30 Jan 2016 21:09:15 +0000 (16:09 -0500)]
Document gtk_parse_args limitations
Mention that some things won't work without a display
connection.
Matthias Clasen [Sat, 30 Jan 2016 21:06:59 +0000 (16:06 -0500)]
Throw an error when a display is missing
Creating style context won't work without a display, so
give a clear error message and abort instead of segfaulting
later on.
https://bugzilla.gnome.org/show_bug.cgi?id=761332
Matthias Clasen [Sat, 30 Jan 2016 18:27:30 +0000 (13:27 -0500)]
3.19.8
Matthias Clasen [Sat, 30 Jan 2016 16:32:06 +0000 (11:32 -0500)]
Remove entry-progress-coloring reftest
We don't recolor text over progress anymore, so this
tests a no longer existing feature.
Matthias Clasen [Sat, 30 Jan 2016 15:29:06 +0000 (10:29 -0500)]
Use TAP output for installed tests
Matthias Clasen [Sat, 30 Jan 2016 15:10:39 +0000 (10:10 -0500)]
Run reftests with HighContrastInverse too
For installed tests, we run the reftests with all the builtin
themes (minus platform-specific ones). Add HighContrastInverse
to that list.
Matthias Clasen [Sat, 30 Jan 2016 04:40:58 +0000 (23:40 -0500)]
Adwaita: Add symbolic png assets
And use them as fallback for the svg ones. This lets us
avoid a hard dependency on librsvg - the theme will work
without svg support.
Matthias Clasen [Sat, 30 Jan 2016 04:36:24 +0000 (23:36 -0500)]
icontheme: Avoid a crash
gtk_icon_info_new_for_file with a size of 0 would fail for
symbolic pngs because we ended up scaling with 0. Avoid this.
Matthias Clasen [Sat, 30 Jan 2016 01:23:27 +0000 (20:23 -0500)]
css: Support the image() notation
This lets us do fallback in case an image format is not
supported, and also lets us provide solid-color images.
We don't support image fragment notations.
See ttps://www.w3.org/TR/css3-images/#image-notation
https://bugzilla.gnome.org/show_bug.cgi?id=761318
Matthias Clasen [Sat, 30 Jan 2016 03:47:38 +0000 (22:47 -0500)]
Emit an error if image loading fails
Instead of spamming stderr with g_warning, use the new
emit_error method of the GtkStyleProviderPrivate interface
to emit an error if loading an image fails.
Matthias Clasen [Sat, 30 Jan 2016 03:45:21 +0000 (22:45 -0500)]
CSS provider: Add a way to emit errors
Currently, GtkCssProvider can emit ::parsing-error only during
the actual parsing, although the documentation hints that it might
happen at other times.
This commit adds a emit_error method to the GtkStyleProviderPrivate
interface that will let us emit errors from the compute() implementations
as well, which can be useful (e.g. if an image fails to load).
Balázs Meskó [Sat, 30 Jan 2016 01:24:09 +0000 (01:24 +0000)]
Updated Hungarian translation
Gábor Kelemen [Sat, 30 Jan 2016 01:23:14 +0000 (01:23 +0000)]
Updated Hungarian translation
Balázs Meskó [Sat, 30 Jan 2016 01:22:10 +0000 (01:22 +0000)]
Updated Hungarian translation
Matthias Clasen [Sat, 30 Jan 2016 00:12:51 +0000 (19:12 -0500)]
file chooser: Make Escape close the dialog
In some situations (no header bar, save mode), hitting Escape
would not do anything because the entry ate the key event.
Fix this by telling the entry to only handle Escape when there
is something to do, such as switching back to the path bar.
https://bugzilla.gnome.org/show_bug.cgi?id=761026
Matthias Clasen [Fri, 29 Jan 2016 23:23:25 +0000 (18:23 -0500)]
Add a css style test for color names
Verify that we support all the css color names, with their expected
rgb values.
Matthias Clasen [Fri, 29 Jan 2016 22:30:10 +0000 (17:30 -0500)]
css image recolor: Load images at the proper scale
We should not hardcode a scale of 1, this leads to
pixellated upscaled images at scale=2, even if the source
is an svg. By passing the proper scale, we can load the
svg at the correct size.
Matthias Clasen [Fri, 29 Jan 2016 22:27:35 +0000 (17:27 -0500)]
icon theme: Improve loading of unthemed files
When creating icon info objects for unthemed files, we don't
really have a nominal size, so we pass 0 to mean 'load at
original size'. However, this is not what was happening.
To make this possible, add variants of some pixbuf loading
functions that take a scale factor instead of a desired size,
and use those when we don't have a nominal size.
Matthias Clasen [Fri, 29 Jan 2016 18:44:45 +0000 (13:44 -0500)]
image: use GtkMisc padding again
This was lost in the gadget conversion.
Thankfully, the misc-alignment reftest catches this.
Matthias Clasen [Fri, 29 Jan 2016 18:21:01 +0000 (13:21 -0500)]
Use an GtkImage instead of GtkArrow
GtkArrow is deprecated, and the recommended replacement
is GtkImage.
Matthias Clasen [Fri, 29 Jan 2016 17:20:31 +0000 (12:20 -0500)]
reftests: get icon-vfuncs test almost working again
The remaining difference here is GtkArrow, which is deprecated
and has not been updated to the latest CSS rendering standards.
Lapo Calamandrei [Fri, 29 Jan 2016 17:09:28 +0000 (18:09 +0100)]
Adwaita: reset padding on notebook tab close button
Matthias Clasen [Fri, 29 Jan 2016 16:51:09 +0000 (11:51 -0500)]
testgtk: Avoid deprecation warnings
Eventually, we should probably remove the examples that rely
on geometry support, since they probably don't work correctly
anymore. For now, just disable the warnings.
Matthias Clasen [Fri, 29 Jan 2016 16:50:22 +0000 (11:50 -0500)]
testoffscreen: Remove deprecated calls
Not doing these calls doesn't seem to affect the demo,
so lets just remove them.
Matthias Clasen [Fri, 29 Jan 2016 16:25:14 +0000 (11:25 -0500)]
testgeometry: Ignore deprecations
All the functionality that is tested here has been deprecated
recently.
Lapo Calamandrei [Fri, 29 Jan 2016 16:48:45 +0000 (17:48 +0100)]
Adwaita: fix border radius on #editor-color-sample
Lapo Calamandrei [Fri, 29 Jan 2016 15:32:43 +0000 (16:32 +0100)]
Adwaita: notebook style rewrite
Matthias Clasen [Fri, 29 Jan 2016 14:42:18 +0000 (09:42 -0500)]
Update gtk-builder-tool docs
Matthias Clasen [Fri, 29 Jan 2016 14:23:41 +0000 (09:23 -0500)]
builder tool: Add a preview command
This was somewhat missing, and is easy to add.
Matthias Clasen [Fri, 29 Jan 2016 13:08:08 +0000 (08:08 -0500)]
docs: Fix a duplicate id
This was causing the css properties chapter to appear twice
in the docs, and the overview not at all.
Matthias Clasen [Fri, 29 Jan 2016 04:09:42 +0000 (23:09 -0500)]
Updates
Matthias Clasen [Fri, 29 Jan 2016 03:49:36 +0000 (22:49 -0500)]
infobar: Don't expose implementation details
Only export the documented widgets as internal children.
Matthias Clasen [Fri, 29 Jan 2016 03:47:28 +0000 (22:47 -0500)]
searchbar: Don't expose implementation details
The various boxes and the revealer here should not be exposed
as internal children for subclasses to use in their .ui files.
Matthias Clasen [Fri, 29 Jan 2016 03:39:31 +0000 (22:39 -0500)]
actionbar: Don't expose implementation details
The box and revealer here should not be exposed as internal
children for subclasses to use in their .ui files.
Matthias Clasen [Fri, 29 Jan 2016 03:36:27 +0000 (22:36 -0500)]
dialog: Stop exporting action_box
This was not meant as an internal child that subclasses
can refer to in their .ui files.
https://bugzilla.gnome.org/show_bug.cgi?id=761254
Matthias Clasen [Fri, 29 Jan 2016 03:10:02 +0000 (22:10 -0500)]
print dialog: Stop using action_box in .ui
We can just use CSS margins nowadays to achieve the desired
appearance.
Matthias Clasen [Fri, 29 Jan 2016 01:50:50 +0000 (20:50 -0500)]
label: fix a case of misleading indentation
gcc 6 complains aobut things like this.
Carlos Garnacho [Thu, 28 Jan 2016 11:46:32 +0000 (12:46 +0100)]
tests: Avoid deprecated API usage in testgtk
We can use seat grabs here.
Carlos Garnacho [Thu, 28 Jan 2016 11:46:07 +0000 (12:46 +0100)]
tests: Avoid deprecated API usage in testsocket
We can use seat grabs here.
Carlos Garnacho [Thu, 28 Jan 2016 11:10:12 +0000 (12:10 +0100)]
tests: Fix deprecation warnings in testinput
Carlos Garnacho [Thu, 28 Jan 2016 11:04:13 +0000 (12:04 +0100)]
demos: Modify "Change display" demo to use seat grabs
The window picking feature was done through a pointer grab, replace
it by a seat grab on pointing devices.
Carlos Garnacho [Thu, 28 Jan 2016 10:58:15 +0000 (11:58 +0100)]
gtkdnd: Fix deprecation compile warnings
Grabbing must stay a bit longer until all other backends than x11/wayland
catch up with GDK DnD, so ignore deprecation flags are used on those. The
uses of GdkDeviceManager can be entirely avoided though.
Christoph Reiter [Thu, 28 Jan 2016 10:04:48 +0000 (11:04 +0100)]
label: use GtkMisc padding again
this was lost in the gadget conversion in
a81267c28e4e0368cd0e23b661e1c8c53f8194fb
https://bugzilla.gnome.org/show_bug.cgi?id=760522
Matthias Clasen [Thu, 28 Jan 2016 04:30:25 +0000 (23:30 -0500)]
spin button: Document sizing peculiarities
Document that it is best to explicitly set width-chars and
max-width-chars to avoid surprises.
https://bugzilla.gnome.org/show_bug.cgi?id=727294
Matthias Clasen [Thu, 28 Jan 2016 04:22:02 +0000 (23:22 -0500)]
composetable: Don't abort on unsupported escape sequences
People might put all sorts of gunk in their .XCompose file, in
the hope that XLib makes sense of it. Even if we don't make sense
of it, we shouldn't abort, but instead ignore the lines we can't
understand. Pointed out in
https://bugzilla.redhat.com/show_bug.cgi?id=
1301254
Matthias Clasen [Wed, 27 Jan 2016 20:14:30 +0000 (15:14 -0500)]
Update README.glade
Update the README.glade file to use current .ui file
names and locations as example.
Mario Blättermann [Wed, 27 Jan 2016 19:08:25 +0000 (20:08 +0100)]
Updated German translation
Matthias Clasen [Wed, 27 Jan 2016 18:23:58 +0000 (13:23 -0500)]
css node tests: Update expected output
The entry undershoot change needs to be reflected in the
test output.
Matthias Clasen [Wed, 27 Jan 2016 18:07:13 +0000 (13:07 -0500)]
window: Always disconnect signal handlers
We connect to the titlebar widgets change notification regardless
whether it is internally created or not, so don't make the signal
handler disconnection conditional on that either.
Matthias Clasen [Wed, 27 Jan 2016 17:57:58 +0000 (12:57 -0500)]
assistant: Avoid tripping template tests
We need to unset the titlebar manually before chaining up
in destroy, otherwise we trigger the template invariant
checking - GtkWindow would eventually unset it, but too late
for the invariants checking code in gtk_widget_destroy.
Allison Ryan Lortie [Wed, 27 Jan 2016 14:50:42 +0000 (15:50 +0100)]
Tweak startup-notification after the first window
Presently, Gtk will only send a startup notification completion message
for the first window that is shown. This is not good for the case of
GtkApplication, where we are expected to participate in
startup-notification for all windows.
We have avoided this problem by manually emitting the startup complete
message from after_emit in GtkApplication.
Unfortunately, this causes problems for windows that are shown with a
delay. It is also a dirty hack.
The reason for the original behaviour is simple: there is a static
boolean in gtkwindow.c which controls it. We remove this.
Instead, clear the startup notification ID stored in GDK when sending
the completion message. GtkApplication will re-set this the next time
an event comes in which needs startup-notification handling. In the
non-GtkApplication case, newly shown windows will still not send the
message, since the cookie will have been cleared.
Finally, we remove the hack from GtkApplication's after_emit.
This will probably cause some regressions in terms of lingering startup
notification messages. The correct solution here is to always use
gtk_window_present(), including when merely opening a new document (with
a new tab, for example).
https://bugzilla.gnome.org/show_bug.cgi?id=690791
Timm Bäder [Wed, 27 Jan 2016 15:32:39 +0000 (16:32 +0100)]
modelbutton: Use indicator state for button gadget if iconic
Krzesimir Nowak [Wed, 27 Jan 2016 12:25:58 +0000 (13:25 +0100)]
entry: Fix a typo
Benjamin Otte [Wed, 27 Jan 2016 13:02:44 +0000 (14:02 +0100)]
entry: Fix a case of disagreeing coordinate systems
gesture_get_current_point() returned x/y in layout coordiantes, but
callers assumed it in textarea coordinates.
Cosimo Cecchi [Wed, 27 Jan 2016 11:25:49 +0000 (12:25 +0100)]
Adwaita: fix spinbutton styling
Spinbuttons were quite broken after the latest changes. This commit
brings the style back around what it was for 3.18.
Matthias Clasen [Wed, 27 Jan 2016 04:33:06 +0000 (23:33 -0500)]
Adwaita: Add some themeing for entry undershoot
This is just copying what we do for scrolled windows.
It will need some tweaks to look good for entries.
Matthias Clasen [Wed, 27 Jan 2016 04:31:28 +0000 (23:31 -0500)]
entry: give a visual clue that content is scrolled
This has been requested long ago, and we now have the
machinery to implement it easily.
Matthias Clasen [Wed, 27 Jan 2016 03:11:54 +0000 (22:11 -0500)]
box gadget: Improve assertion message
Include the owner of the gadget in the assertion message,
to improve the chances of tracking down whats actually
going wrong here.
Matthias Clasen [Wed, 27 Jan 2016 02:27:12 +0000 (21:27 -0500)]
color button: Allow skipping the palette
Allow skipping the palette in the dialog, and going directly
to the editor. This is useful when the color button is already
part of a palette.
Matthias Clasen [Wed, 27 Jan 2016 01:57:50 +0000 (20:57 -0500)]
Fix a typo
Benjamin Otte [Wed, 27 Jan 2016 01:07:35 +0000 (02:07 +0100)]
entry: Compute selection range correctly
gtk_editable_get_selection_bounds() returns UTF-8 character offsets,
but gdk_pango_layout_get_clip_region() wants byte ranges, so convert
from one to the other.
With English, this is especially visible for passwords, which use ●
as the invisible character.
https://bugzilla.gnome.org/show_bug.cgi?id=761128